package com.xbongbong.outLink.domain.dao;

import com.xbongbong.outLink.domain.entity.OuterLinkEntity;
import com.xbongbong.pro.domain.entity.ActivityCorpEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface OutLinkDao {
    Long insert(OuterLinkEntity outerLinkEntity);

    Integer update(OuterLinkEntity outerLinkEntity);

    Integer deleteByKey(@Param("key") Long key);

    OuterLinkEntity getByKey(@Param("key") Long key);

    List<OuterLinkEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
